//
//  ViewController.swift
//  ZZLButton
//
//  Created by zzl on 01/09/2023.
//  Copyright (c) 2023 zzl. All rights reserved.
//

import UIKit
import ZZLButton

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let button = ZZLButton(frame: CGRect(x: 0, y: 100, width: 400, height: 200))
        button.zl_direction = .verticalImageTitle
        button.zl_gap = 50
        button.backgroundColor = UIColor.gray
        button.setImage(UIImage(named: "icon"), for: .normal)
        button.setTitle("标题标题标题标题标题", for: .normal)
        self.view.addSubview(button)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}

